// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
import App from './App';
import router from './router';
import Axios from 'axios';
import Vuex from 'vuex';
import {store} from './store/store';
import md5 from 'js-md5';
import VueLazyload from 'vue-lazyload';
import { Notify } from 'vant';


import Vant from 'vant';
import 'vant/lib/index.css';
import { SwipeCell } from 'vant';

Vue.prototype.$axios=Axios;
Vue.use(Vuex);
Vue.prototype.$md5 = md5;
Vue.use(VueLazyload);

Vue.use(SwipeCell);

Vue.use(Vant)
Vue.use(Notify);



// or with options
Vue.use(VueLazyload, {
  preLoad: 1.3,
  error: 'dist/error.png',
  loading: 'dist/loading.gif',
  attempt: 1
})

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
